<template>
	<view class="content">
		<image class="tupian" src="../../static/cheng.png" mode="widthFix"></image>
		<view class="cheng">恭喜您，已支付成功</view>
		<view class="tiao">
			<view class="tiao2" @click="home">回首页</view>
			<view class="tiao3" @click="user">我的订单</view>
		</view>
	</view>
</template>

<script>
	var app=getApp();
	export default {
		data() {
			return {
				uid:0
			}
		},
		onLoad(op) {
			const uid = uni.getStorageSync('uid');
			if(app.isBlank(uid)==true){
				uni.navigateTo({
				    url: '/pages/login/login'
				});
				return false;
			}
			this.uid=uid;
		},
		methods: {
			home(){
				uni.reLaunch({
				    url: '/pages/index/index'
				});
			},
			user(){
				uni.redirectTo({
				    url: '/pages/order/index'
				});
			}
		}
	}
</script>

<style>
	.tiao3{width:40%;height:40px;line-height: 40px;border-radius: 5px;text-align: center;color:#fff;float: right;background-color: #05c160;}
	.tiao2{width:40%;height:38px;line-height: 38px;border:1px #05c160 solid;border-radius: 5px;text-align: center;color:#05c160;float: left;}
	.tiao{width:80%;padding: 0px 10%;overflow: hidden;margin-top: 50px;}
	.cheng{width:100%;text-align: center;margin-top: 10px;}
	.tupian{width:90px;margin: 0 auto;margin-top: 60px;}
</style>
